#ifndef BATCHCHECKINRESPONSE_H
#define BATCHCHECKINRESPONSE_H

#include "BaseResponse.h"

struct BatchCheckInResponsePcuInfo
{
    QString locationNo;
    QString pcu;
    QString resultMsg;
};

class BatchCheckInResponse : public BaseResponse
{
public:
    BatchCheckInResponse();
    BatchCheckInResponse(const QString& factoryNo,const QString& transId,const QDateTime& eventTime,const QString& resultCode,const QList<BatchCheckInResponsePcuInfo>& pcuInfo);


    // BaseResponse interface
    bool fromJson(const QByteArray &jsonData) override;
    bool isSuccess() const override;
    QString getError() const override;
public:
    QString factoryNo;
    QString transId;
    QDateTime eventTime;
    QString resultCode;
    QString errorMsg;
    QList<BatchCheckInResponsePcuInfo> pcuInfo;

    QString jsonContent;

private:
    bool success;
    QString resultMsg;
};

#endif // BATCHCHECKINRESPONSE_H
